﻿using UnityEngine;
using System.Collections;

public class MultiCamera : MonoBehaviour {

	public GameObject[] cameras;
	
	void Start() {
	
//		for(int i = 0; i < cameras.Length; ++i) {
//		
//			Rect viewport = new Rect(0.25f, 0.25f, 0.25f, 0.25f);
//			cameras[i].camera.rect = viewport;
//			
//		}
		
		Rect viewport1 = new Rect(0.0f, 0.0f, 1.0f, 1.0f);
		cameras[1].camera.rect = viewport1;
		
		Rect viewport2 = new Rect(0.5f, 0.0f, 0.5f, 0.5f);
		cameras[0].camera.rect = viewport2;
		
	}
	
}
